Fedora 31 : setup Hint

--------------------------------------

fallocate -l 10G /disk01/swapfile

chmod 0600 /disk01/swapfile

mkswap /disk01/swapfile

swapon /disk01/swapfile

--------------------------------------

vi /etc/fstab

/dev/mapper/cl-root     /disk01        xfs     defaults        0 0

/dev/mapper/cl-home     /home   xfs     defaults        0 0

/dev/sdb1               /data0       ext4    nofail,defaults 0 0

1.1.1.49:/      /owl49       nfs     nofail,defaults 0 0

/disk01/swapfile none swap sw 0 0

--------------------------------------

findmnt --verify

findmnt --verify --verbose

--------------------------------------

vi /usr/lib/systemd/system/rc-local.service

[Install]

WantedBy=multi-user.target

--------------------------------------

vi /etc/rc.d/rc.local

# mount /dev/sdc1 /data1TB3

# mount -t nfs 1.1.1.49:/ /owl49

--------------------------------------

chmod 755 /etc/rc.d/rc.local

--------------------------------------

lvmdiskscan

lvdisplay

lvscan

lsblk

--------------------------------------

mc : Midnight Commander : Slow start

vi /etc/hosts

127.0.0.1      owl49

--------------------------------------

getent passwd

groups myid

getent shadow | grep myid

--------------------------------------

vi /etc/login.defs

--------------------------------------

select CONCAT('adduser -u ', uid, ' -g ', gid, ' ', username,' -p ''', password,'''', ' -d ''', homedir, '''', ' -s ', shell) adduserScript

, CONCAT('userdel ', username) userdelScript

from hosting.users 

--------------------------------------

adduser -u 66001 -g 48 testftp -p '$1$xxxxxxxxxxxxxxx.' -d '/home/testftp' -s /bin/bash

adduser -u 1036 -g 48 testuserid -p '$1$xxxxxxxxxxxxxxxxxxxxxx.'

userdel testuserid

--------------------------------------

symlink chown

chown -h testftp /home/testftp

--------------------------------------

php -m

--------------------------------------